<%
String.prototype.trim = function()
{
    return this.replace(/^\s\s*/, "").replace(/\s\s*$/, "");
}
%>

<!-- #include virtual="/OxWebCATI/includes/exceptionHandler.asp" -->
<!-- #include virtual="/OxWebCATI/includes/parameters.asp" -->

<!-- #include virtual="/OxWebCATI/includes/applicationCache.asp" -->
<!-- #include virtual="/OxWebCATI/includes/sessionCache.asp" -->
<!-- #include virtual="/OxWebCATI/includes/surveys.asp" -->

<!-- #include virtual="/OxWebCATI/includes/authentication.asp" -->
<!-- #include virtual="/OxWebCATI/includes/authorization.asp" -->
<!-- #include virtual="/OxWebCATI/includes/dataController.asp" -->
<!-- #include virtual="/OxWebCATI/includes/dateUtilities.asp" -->
<!-- #include virtual="/OxWebCATI/includes/administration.asp" -->

<%// Run-time classes%>
<!-- #include virtual="/OxWebCATI/includes/interviewee.asp" -->
<!-- #include virtual="/OxWebCATI/includes/interview.asp" -->
<!-- #include virtual="/OxWebCATI/includes/coding.asp" -->

<!-- #include virtual="/OxWebCATI/includes/qoutaController.asp" -->
<!-- #include virtual="/OxWebCATI/includes/questionDisplayer.asp" -->
<!-- #include virtual="/OxWebCATI/includes/webControlLibrary.asp" -->
<!-- #include virtual="/OxWebCATI/includes/answerHandler.asp" -->
<!-- #include virtual="/OxWebCATI/includes/IO.asp" -->

<%
Response.Expires = -1;

function REDIRECT_TO_PAGE(url)
{
    CompletePage();
    Response.Redirect(url);
    Response.End();
}

// Check for session timeout or direct access
if(String(Session("user_name"))=="undefined")
{
	Session("user_name") = "TEMP";
	Response.Redirect("/oxWebCATI/default.asp?screenType=login");
}

PreparePage();

Out
(
    "<html>" +
	    "<head>" +
	        "<scr" + "ipt language=\"javascript\" src=\"/oxwebcati/js/array.js\"></scr" + "ipt>" +
	        "<scr" + "ipt language=\"javascript\" src=\"/oxwebcati/js/mouse.js\"></scr" + "ipt>" +
	        "<scr" + "ipt language=\"javascript\" src=\"/oxwebcati/js/serverrequest.js\"></scr" + "ipt>" +
	        "<scr" + "ipt language=\"javascript\" src=\"/oxwebcati/js/eventcollector.js\"></scr" + "ipt>" +
	    "</head>" +
	    "<style>" +
		    "body {font-family:verdana, tahoma, arial; font-size:12px;}" +
		    "table {font-family:verdana, tahoma, arial; font-size:12px;}" +
		    ".inputBox {font-family:verdana, tahoma, arial; font-size:14px;border:1px solid #606060;}" +
		    ".headerLogoTable {border:0px;cell-spacing:0;cell-padding:0;width:100%;border-bottom:4px solid #000000;border-top:2px solid #000000;}" +
		    ".headerLogoCell {font-family:verdana, tahoma, arial;font-size:12px;text-indent:0px;color:#FFFFFF}" +
		    ".cB {font-family:verdana, tahoma, arial; font-size:12px;}" +
		    ".surveySelect {font-family:verdana, tahoma, arial; font-size:12px; color:#4080D0; font-weight:bold; text-decoration:none;}" +
		    ".surveySelect:hover {font-family:verdana, tahoma, arial; font-size:12px; color:#FFFFFF; font-weight:bold; border:1px solid #60A0F0;background-color:4080D0;}" +
		    ".questionSelect {font-family:verdana, tahoma, arial; font-size:10px; color:#4080D0; font-weight:bold; text-decoration:none;}" +
		    ".questionSelect:hover {font-family:verdana, tahoma, arial; font-size:10px; color:#FFFFFF; font-weight:bold; border:1px solid #60A0F0;background-color:4080D0;}" +
		    ".questionText{font-family:verdana, tahoma, arial; font-size:10px; color:#404040; font-weight:normal; text-decoration:none;}" +
		    ".descriptiveCell {font-family:verdana, tahoma, arial; font-size:12px;color:#404040;background-color:#80FF40;text-align:center;font-weight:bold;}" +
		    ".checkBoxText {font-family:verdana, tahoma, arial; font-size:14px;color:#000000;font-weight:bold;cursor:hand;border:2px solid #FFFFFF;}" +
		    ".submitButton {font-family:verdana, tahoma, arial; font-size:14px;background-color:#208020;color:#FFFFFF;font-weight:bold;cursor:hand;border:1px solid #808080;}" +
		    ".dateCombo {font-family:verdana, tahoma, arial; font-size:14px;background-color:#FFFFFF;color:000000#;font-weight:bold;}" +
		    ".historyH{font-family:verdana, tahoma, arial; font-size:10px; color:#404040; font-weight:bold; text-decoration:none;background-color:#e0e0e0}" +
		    ".historyR{font-family:verdana, tahoma, arial; font-size:10px; color:#404040; font-weight:normal; text-decoration:none;background-color:#f0f0f0}" +
		    ".historyG{font-family:verdana, tahoma, arial; font-size:10px; color:#404040; font-weight:normal; text-decoration:none;background-color:#a0ffa0}" +
		    ".historyA{font-family:verdana, tahoma, arial; font-size:10px; color:#404040; font-weight:normal; text-decoration:none;background-color:#ffe0e0}" +
		    ".loginBox{font-family:verdana;font-size:10px;font-weight:bold;border:0px;background-color:#FFFFFF;color:#404040;width:90px}" +
	    "</style>" +
	    "<body onkeydown='if(event.keyCode==8 && event.srcElement.type!=\"text\" && event.srcElement.type!=\"textarea\"){event.keyCode=0;return false;}' bgcolor='ffffff' leftmargin='0' topmargin='0' rightmargin='0' topmargin='0'>"
);

%>